package ruoyi.example.client;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Map;

/**
 * 方式二
 */
@Component
public class UserApiTest2 {

    @Autowired
    UserApiClient userApiClient;

    protected Logger logger = LoggerFactory.getLogger(UserApiTest2.class);

    public void getUserById() {
        Map<String, Object> map = userApiClient.getUserById(10001L);
        logger.info("返回值test2：" + map);
    }
}
